<template>
  <div class="icons">
    <swiper>
      <swiper-slide>
        <div class="icon">
          <div class="icon-img">
            <img class="icon-img-content" src="../../../assets/pic/3.png" alt />
          </div>
          <p class="icon-desc">热门景点</p>
        </div>
        <div class="icon">
          <div class="icon-img">
            <img class="icon-img-content" src="../../../assets/pic/3.png" alt />
          </div>
          <p class="icon-desc">热门景点</p>
        </div>
        <div class="icon">
          <div class="icon-img">
            <img class="icon-img-content" src="../../../assets/pic/3.png" alt />
          </div>
          <p class="icon-desc">热门景点</p>
        </div>
        <div class="icon">
          <div class="icon-img">
            <img class="icon-img-content" src="../../../assets/pic/3.png" alt />
          </div>
          <p class="icon-desc">热门景点</p>
        </div>
        <div class="icon">
          <div class="icon-img">
            <img class="icon-img-content" src="../../../assets/pic/3.png" alt />
          </div>
          <p class="icon-desc">热门景点</p>
        </div>
        <div class="icon">
          <div class="icon-img">
            <img class="icon-img-content" src="../../../assets/pic/3.png" alt />
          </div>
          <p class="icon-desc">热门景点</p>
        </div>
        <div class="icon">
          <div class="icon-img">
            <img class="icon-img-content" src="../../../assets/pic/3.png" alt />
          </div>
          <p class="icon-desc">热门景点</p>
        </div>
        <div class="icon">
          <div class="icon-img">
            <img class="icon-img-content" src="../../../assets/pic/3.png" alt />
          </div>
          <p class="icon-desc">热门景点</p>
        </div>
      </swiper-slide>
      <swiper-slide>
        <div class="icon">
          <div class="icon-img">
            <img class="icon-img-content" src="../../../assets/pic/3.png" alt />
          </div>
          <p class="icon-desc">热门景点</p>
        </div>
      </swiper-slide>
    </swiper>
  </div>
</template>

<script>
export default {};
</script>

<style lang="stylus" scoped>
@import '~@/assets/css/iconfont/mixins.styl'
.icons >>> .swiper-container
  height: 0
  padding-bottom: 50%
.icons
  height: 0
  padding-bottom: 50%
  .icon
    position: relative
    float: left
    height: 0
    width: 25%
    padding-bottom: 25%
    .icon-img
      position: absolute
      left: 0
      right: 0
      top: 0
      bottom: 0.44rem
      box-sizing: border-box
      padding: 0.1rem
      .icon-img-content
        display: block
        margin: 0 auto
        height: 100%
    .icon-desc
      position: absolute
      left: 0
      right: 0
      bottom: 0
      height: 0.44rem
      line-height: 0.44rem
      text-align: center
      ellipsis()
</style>